package pearson.automation.forms.courseDetails;

import org.openqa.selenium.By;

import framework.elements.Button;
import framework.BaseForm;

public class CoursePublishingDetails extends BaseForm {

    private static Button includePrintVersions =
        new Button(By.className("ios-checkbox-toggler-wrapper"),
                "Print output check");
    
    private Button back =
        new Button(By.linkText("Back"), "Back");
    private Button next =
        new Button(By.name("_submit"), "Next");
    
    public CoursePublishingDetails() {
        super(includePrintVersions.getLocator(), "Publishing Details");
    }
    
    public CoursePublish clickBack() {
        back.clickAndWait();
        return new CoursePublish();
    }
    
    public CourseReviewAndPublish clickNext() {
        next.clickAndWait();
        return new CourseReviewAndPublish();
    }
}
